<nz-modal nzWidth='966' nzTitle="用户选择({{roleName}})" [nzMaskClosable]='false' [nzFooter]="null"
  [(nzVisible)]="isVisible" (nzOnCancel)="close()">
  <div class="user-work">
    <!-- 查询框 -->
    <div class="top">
      <nz-radio-group style="width: 220px;margin-top: 5px;" [(ngModel)]="searchRole">
        <label nz-radio nzValue="2">当前角色</label>
        <label nz-radio nzValue="1">非当前角色</label>
      </nz-radio-group>
      <input nz-input placeholder="姓名" class="fm-input" [(ngModel)]="fs.queryObject['userName:like']" />
      <nz-button-group>
        <button nz-button nzType="primary" (click)="query()">查询</button>
        <button nz-button (click)="reset()">重置</button>
      </nz-button-group>
    </div>
    <!--左侧栏合同列表信息-->
    <div class="left top-left">
      <nz-tree #treeCom nzAsyncData (nzClick)="treeSelect($event)" [nzData]="depDic.treeDatas"
        (nzExpandChange)="depDic.expand($event)">
      </nz-tree>
    </div>
    <!-- 右则样表单主体 -->
    <div class="right top-right">
      <div class="table">
        <nz-table nzSize="middle" nzShowSizeChanger [nzPageSizeOptions]='[ 10, 15, 20, 30, 40, 50 ]'
          [nzFrontPagination]="false" [nzData]="fs.datas" [nzLoading]="fs.isLoading || fs.isDeleing"
          [nzTotal]="fs.rowsCount" [(nzPageIndex)]="fs.pageIndex" [(nzPageSize)]="fs.pageSize"
          (nzPageIndexChange)="fs.loadData()" (nzPageSizeChange)="fs.loadData(true)">
          <thead (nzSortChange)="fs.sort($event)" nzSingleSort>
            <tr>
              <th nzWidth="10%"></th>
              <th nzWidth="45%">基本信息</th>
              <th nzWidth="45%">角色</th>
            </tr>
          </thead>
          <tbody>
            <tr *ngFor="let data of fs.datas">
              <td nzShowCheckbox [(nzChecked)]="data.checked" (nzCheckedChange)="update(data)">
              </td>
              <td>
                {{data.userName}}<br />
                {{data.departmentName}}
              </td>
              <td>
                {{data.roleNames}}
              </td>
            </tr>
          </tbody>
        </nz-table>
      </div>
    </div>
  </div>

</nz-modal>